package com.LachesismStorm.lachesism.core.exception.mapper;

import com.LachesismStorm.lachesism.core.exception.ExceptionLog;
import org.apache.ibatis.annotations.Insert;

/**
 * @Author lachesism
 * @Date 2025-01-01 14:39
 **/
public interface ExceptionLogMapper {

    @Insert("INSERT INTO sys_exception_log (exception_message, stack_trace, request_uri, method, user_agent, timestamp, method_name) " +
            "VALUES (#{exceptionMessage}, #{stackTrace}, #{requestUri}, #{method}, #{userAgent}, #{timestamp}, #{methodName})")
    void insertExceptionLog(ExceptionLog exceptionLog);
}